package run.siyuan.jdk.设计模式.原型模式.原型模式案例3;

/**
 * @className: PrototypeClass
 * @Description: TODO
 * @author: siyuan
 * @date: 2022/3/21 5:37 下午
 */
public class PrototypeClass implements Cloneable {
    //覆写父类Object方法
    @Override
    public PrototypeClass clone() {
        PrototypeClass prototypeClass = null;
        try {
            prototypeClass = (PrototypeClass) super.clone();
        } catch (CloneNotSupportedException e) {
            //异常处理
        }
        return prototypeClass;
    }
}
